﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Agriculture.Domain
{
    /// <summary>
    /// 处方实体
    /// </summary>
    public class PrescriptionModel : EntityModel
    {
        /// <summary>
        /// 处方编号
        /// </summary>
        public string PrescriptionNo { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        
        /// <summary>
        /// 处方状态(0:草稿, 1:已开具, 2:已审核, 3:已调配, 4:已作废)
        /// </summary>
        public int Status { get; set; }
        
        /// <summary>
        /// 医生ID
        /// </summary>
        public int DoctorId { get; set; }
        
        /// <summary>
        /// 诊断结果
        /// </summary>
        public string Diagnosis { get; set; }
        
        /// <summary>
        /// 治疗建议
        /// </summary>
        public string Treatment { get; set; }
        
        /// <summary>
        /// 是否删除(0:未删除，1:已删除)
        /// </summary>
        public int IsDeleted { get; set; }
        
        /// <summary>
        /// 医生对象（导航属性）
        /// </summary>
        public virtual DoctorModel Doctor { get; set; }
    }
}
